
                    <view class='card-box'  >
                    <view class="newbox ">
                                               <view class="vote-item-hd other pos-r">
                            <image lazyLoad="true" mode="aspectFill" src="{{vote.avatar?vote.avatar:default_img}}" class="{{vote.level==1?'cu-border':''}}"></image>
                            <image src='../../img/v1.png' class='v1img' wx:if="{{vote.level==1}}"></image>
                            <view class="vote-item-hd-info" bindtap="showDetail">
                                <view class="nickname">{{vote.nick_name||'匿名'}}</view>
                            </view>
                          
                            <view class="share_t">
                                <view class="vote-item-ft">
                                
                                    <button bindtap="onShareAppMessage" data-nickname="{{vote.nick_name}}" data-voteid="{{vote.objectId}}" 
                                     data-title="{{vote.title}}"
                                    openType="share" plain="true">
                                   <image src="../../img/myshare.png" class="myshare"></image>
                                       
                                    </button>
                                </view>
                            </view>
                        </view>
                         
                        <view class="vote-item-hd ">
                     
                            <view bindtap="targetToVoteDetail" data-voteid="{{vote.objectId}}" class='mytitle'> <view class='cu-tag   line-orange margin-bottom-xs ' wx:if="{{vote.hot}}">{{vote.label||'热门'}}</view>
                              <view class='cu-tag  light line-cyan margin-bottom-xs' wx:elif="{{vote.label}}">{{vote.label}}</view>{{vote.title}} </view>
                        </view>
                        <view class='text-gray text-center text-xl margin-bottom' wx:if="{{vote.desc_content}}">
                        <image src="{{vote.desc_content}}" class='desc_img' bindtap="showImg" data-url="{{vote.desc_content}}" mode='aspectFill'></image>
                        </view>
                        <view class="vote-item-hd">
                            <view class='vote-all'>
                                <text bindtap="targetToVoteDetail" class="num-word" data-voteid="{{vote.objectId}}" decode="{{true}}" wx:if="{{vote.group_count>0}}"> {{vote.group_count||0}} <text class='myman'>人投票</text></text>
                            </view>
                        </view>

    <view class="vbtn" wx:if="{{!answer.content}}">
        <view class="vote-btns">
        <view catchtap="agree"  data-info="1" data-id="{{vote.objectId}}" data-index="{{voteIndex}}" data-type="2"   class="agree {{(vote.content1.length>=8||vote.content2.length>=8)?'btn2':'btn1'}}">{{vote.content1}}</view>
        <image class="{{anotherType?'vs-img1':'vs-img'}}" lazyLoad="true" src="../../img/VS.png"></image>
        <view catchtap="agree"  data-info="2"  catchtap="agree"   data-id="{{vote.objectId}}" data-index="{{voteIndex}}" data-type="2"  class="disagree {{(vote.content1.length>=8||vote.content2.length>=8)?'btn2':'btn1'}}">{{vote.content2}}</view>
    </view>
   
</view>


 <view class='pbox' wx:if="{{answer.content}}">

  <view class="cu-progress radius striped ">
    <view class="bg-red" style="width:{{loading?tools.prenum(vote.vote_content1,vote.group_count):''}};">{{tools.prenum(vote.vote_content1,vote.group_count)}}</view>
  
    <view class="bg-blue" style="width:{{loading?tools.prenum(vote.vote_content2,vote.group_count):''}};">{{tools.prenum(vote.vote_content2,vote.group_count)}}</view>
  </view>
<view class="number ">
    <view class="agree-number">
         <text class="cuIcon-like lg text-blue"  wx:if="{{answer.content==1}}"></text>
    {{answer.content=='1'?'(已选)':''}}{{vote.content1}}
  </view>
    <view class="disagree-number">
   <text class="cuIcon-like lg text-blue"  wx:if="{{answer.content==2}}"></text>
    <!-- <view class="big">{{disagreeNumber}}</view> -->
  {{answer.content=='2'?'(已选)':''}}{{vote.content2}}

    </view>
</view>


</view>
<view class='hr-box'></view>
</view>



</view>
<view class='out-box'>
<view class='in-box border-line padding-right-xs'>
<view class='text-gray'><text class='my-red'>红方</text>投票用户:</view>
<view class='userbox '> 

<view wx:for="{{content1}}" wx:key='index' >

<image src='{{item.userinfo.avatarurl||default_img}}' class='uimg'></image>
</view>
</view>
</view>

<view class='in-box2 '>
<view class='text-gray'><text class='my-blue'>蓝方</text>投票用户:</view>
<view class='userbox '> 

<view wx:for="{{content2}}" wx:key='index' >

<image src='{{item.userinfo.avatarurl||default_img}}' class='uimg'></image>
</view>
</view>
</view>
</view>
<view class='footer-box '>
<view class="home_btn" bindtap="goHome">回到首页</view>
</view>

<view class='text-gray text-center margin-top text-df'>- 更多信息请联系客服 -</view>
<view class="body-view" hidden="{{hidden}}">
    <loading hidden="{{hidden}}">
      努力加载中...
    </loading>
</view>
<wxs module="tools" src="../../pages/wxs/func.wxs" />